import {
	request
} from "../../request";

// replace(/\s+/g, '+') 将每个匹配的空格替换为加号
//身份证信息读取文字
export function idcardOCR(data, srcToken) {
	return request("v1.UserAccount/idcardOCR", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
//身份证校验
export function openAccount(data, srcToken) {
	return request("v1.UserAccount/openAccount", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
//获取短信验证码
export function bindCard(data, srcToken) {
	return request("v1.UserAccount/bindCard", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 确认绑卡
export function bindCardCheck(data, srcToken) {
	return request("v1.UserAccount/bindCardCheck", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取已绑定卡信息
export function findBindBankCards(data, srcToken) {
	return request("v1.UserAccount/findBindBankCards", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 个人银行卡解绑
export function unbindCard(data, srcToken) {
	return request("v1.UserAccount/unbindCard", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 个体实名开户
export function apiOpen(data, srcToken) {
	return request("v1.UserAccount/apiOpen", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 营业执照文字提取
export function BizLicenseQCR(data, srcToken) {
	return request("v1.UserAccount/BizLicenseQCR", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 企业开户
export function apiOpen2Reg(data, srcToken) {
	return request("v1.UserAccount/apiOpen2Reg", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 企业商户开户第三步上传开户资料
export function apiOpen2Upload(data, srcToken) {
	return request("v1.UserAccount/apiOpen2Upload", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 对公卡绑定
export function applyBindCard(data, srcToken) {
	return request("v1.UserAccount/applyBindCard", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 对公卡解绑
export function applyUnbindCard(data, srcToken) {
	return request("v1.UserAccount/applyUnbindCard", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 重发邮件
export function sendBindCardEmail(data, srcToken) {
	return request("v1.UserAccount/sendBindCardEmail", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 个体实名开户-第二步：上传资料
export function openForUpload(data, srcToken) {
	return request("v1.UserAccount/openForUpload", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取行业编码
export function getIndustryCode(data, srcToken) {
	return request("v1.UserAccount/getIndustryCode", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 企业，个人修改支付密码
export function changePassWord(data, srcToken) {
	return request("v1.UserAccount/login", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取银行编码
export function getBackCode(data, srcToken) {
	return request("v1.UserAccount/getBackCode", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取客户信息(宝付）
export function queryCustomerInfo(data, srcToken) {
	return request("v1.UserAccount/queryCustomerInfo", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取企业绑卡 鉴权结果客户信息(宝付）
export function authFlagStatus(data, srcToken) {
	return request("v1.UserAccount/authFlagStatus", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 获取宝付开户类型
export function mandaoType(data, srcToken) {
	return request("v1.Money/mandaoType", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 设置记录每一次的步骤条
export function setStep(data, srcToken) {
	return request("v1.UserAccount/setStep", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
// 设置个人绑卡-解绑成功后 记录绑卡信息存进客户信息接口
export function setUserbank(data, srcToken) {
	return request("v1.UserAccount/setUserbank", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
//(第一步)个人开户上传身份证
export function getIsClaim(data, srcToken) {
	return request("v1.UserAccount/getIsClaim", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
//开户认领
export function openAccountClaim(data, srcToken) {
	return request("v1.UserAccount/openAccountClaim", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
//开户认领
export function personalCenter(data, srcToken) {
	return request("v1.UserAccount/personalCenter", data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'))
}
export function getMoney(data, srcToken) {
	return request('v1.money/index', data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'));
}
export function getCashInfo(data, srcToken) {
	return request('v1.money/getCashInfo', data, uni.getStorageSync('srcToken').replace(/\s+/g, '+'));
}
//开户认领